FUNCTION
set.retain_all
function retain_all(values: collection<-T>): booleanRetain in this collection only those elements found in the given collection. In other words, remove from this collection all elements that are not found in the given collection.
Parameters
- values — the collection of elements to retain
Returns
true if any elements were removed from this collection, false if it was not modified
Since
0.14.16
© 2026 Chromia